import type { Metadata } from "next";
import { Toaster } from "sonner";
import "./globals.css";
import { Providers } from "./providers";

export const metadata: Metadata = {
    title: "3D 模型展示平台",
    description: "一个现代化的 3D 模型管理和展示平台",
};

export default function RootLayout({
    children,
}: Readonly<{
    children: React.ReactNode;
}>) {
    return (
        <html lang="zh-CN">
            <body>
                <Providers>
                    {children}
                    <Toaster position="bottom-left" richColors />
                </Providers>
            </body>
        </html>
    );
}
